package com.nbot.common.command.s2b;

import com.nbot.common.command.BotCommand;
import com.nbot.common.domain.SearchResult;

import java.util.List;

/**
 * s2b
 * 查询指令的返回指令
 */
public class SelectBackCommand extends S2bCommand {
    public String getOpcKey() {
        return opcKey;
    }

    public void setOpcKey(String opcKey) {
        this.opcKey = opcKey;
    }

    /**
     * 读取opc数据点的key
     */
    private String opcKey;
    /**
     * 读取opc数据点的值（结果值）
     */
    private String result;


    public List<SearchResult> getRelatedPoint() {
        return relatedPoint;
    }

    public void setRelatedPoint(List<SearchResult> relatedPoint) {
        this.relatedPoint = relatedPoint;
    }

    private List<SearchResult> relatedPoint;

    public String getResult() {
        return result;
    }

    public void setResult(String result) {
        this.result = result;
    }


    public SelectBackCommand(String opcKey, String result) {
        super(BotCommand.TYPE_S2B_SELECTBACK);
        this.opcKey = opcKey;
        this.result = result;
    }


    @Override
    public String toString() {
        return "SelectBackCommand{" +
                "opcKey='" + opcKey + '\'' +
                ", result='" + result + '\'' +
                '}';
    }
}
